import sys, os
from PyQt4 import QtGui, QtCore
from box import *
from window import *
from enum_classes import *
from DSLParser import *
from questionMark_solver import *

if __name__ == '__main__':
   app = QtGui.QApplication(sys.argv)
   tpl = parse("temp_dsl_file.txt")
   box_dict = tpl[0]
   main_dict = solve(box_dict)
   print(box_dict)
   main_dict["main_window"]({}) 
   sys.exit(app.exec_())


#main_window <- ( (button:100x100)[] | (:?x?)[]  200x100)[]
